<!--
 * @Author: wusd
 * @Date: 2022-05-18 14:58:44
 * @LastEditors: wusd
 * @LastEditTime: 2022-06-02 10:41:54
 * @Description: 
 * 
-->
<script lang="tsx">
import { Component, Model, Vue, Watch } from 'vue-property-decorator'
@Component({
  name: 'ceshi'
})
export default class test extends Vue {
  @Model('input', { type: String }) readonly value: any
  public wsd = ''
  public changeData() {
    this.$emit('input', this.wsd)
  }
  created() {
    this.wsd = this.value
  }
  @Watch('value')
  public initValue(newValue: any) {
    this.wsd = newValue
  }
  protected render() {
    return (
      <div>
        <el-input v-model={this.wsd} oninput={this.changeData}></el-input>
      </div>
    )
  }
}
</script>

<style lang="scss"></style>
